import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import qiankun from "vite-plugin-qiankun";
export default defineConfig({
  plugins: [react(), qiankun("react-app", { useDevMode: true })],
  base: process.env.NODE_ENV === "production" ? "/react-app/" : "/", // 生产环境基础路径
  server: {
    cors: true,
    port: 3000,
  },
});
